//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	IpcServer.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using System;
using System.Threading;

namespace Smart
{
	/// <summary>
	/// Ipc Server base class
	/// </summary>
	public class IpcServer : MarshalByRefObject, IIpcServer
	{
		protected ReaderWriterLockSlim Sync = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);

		/// <summary>
		/// Always returns true, used to check communication
		/// </summary>
		public virtual bool Ping()
		{
			return true;
		}
	}
}